<style type="text/css">
.carousel-inner .item img{
	max-width: 100%;
    max-height: 100%;
    vertical-align: middle;
	height:82px;
}
.star-rate {margin-left:0}
.fe-floatright-bottom a {
    display: block;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 100%;
    background-color: #ff9999;
    color: #fff;
    line-height: 0.7rem;
	font-size:0.45rem;
    margin: 0.5rem auto;
    margin-right: 0;
}
.fe-floatright-bottom a .icon {
    color: #fff;
    font-size: 0.6rem;
    height: 0.6rem;
	line-height: 1rem;
    opacity: 1;
}
</style>

<div class="fui-page-group ">
<div class="fui-page  fui-page-current page-goods-list">
	<div class="sort" style="top:0.2rem">
		<div class="item" ng-class="{'on':pagedata.storetype==0}" ng-click="tool.get_list('jy_yiliao/lesson_list/getlist/storetype=0',true);pagedata.storetype=0"><span class="text">金牌分校</span></div>
		<div class="item" ng-class="{'on':pagedata.storetype==1}" data-order="sales" href="javascript:" ng-click="tool.get_list('jy_yiliao/lesson_list/getlist/storetype=1',true);pagedata.storetype=1"><span class="text">先进分校</span></div>
		<div class="item" ng-class="{'on':pagedata.storetype==2}" data-order="sales" href="javascript:" ng-click="tool.get_list('jy_yiliao/lesson_list/getlist/storetype=2',true);pagedata.storetype=2"><span class="text">普通分校</span></div>
		<div class="fui-list-group merchgroup" ng-repeat="item in pagedata.list" >
			<div ng-click="access_json('jy_yiliao/lesson_detail//id='+item.id)" style="height:120px;margin:5px 10px;background:url('{{tomedia(item.image) || '../addons/jy_yiliao/resource/images/bgimg.png'}}') no-repeat 50%;background-size: cover;border-radius: 5px;">
				<div style="height:120px;position:relative;background-color:#696969;filter:Alpha(opacity=50);opacity:0.8;border-radius: 5px;">
					<div style="position:absolute;bottom:5px;padding:0 10px;color:#FFFFFF">
						<span style="margin-bottom:10px;display:block;">{{item.title}}</span>
						<span style="display:block;word-wrap:break-word ;">{{item.description || '该科室还没有添加简介！'}}</span>
					</div>
				</div>
			</div>
		</div>
		<div ng-show="pagedata.loading" class='infinite-loading'><span class='fui-preloader'></span><span style="margin-left:1.5rem"> 正在加载...</span></div>
    </div>
</div>
</div>

<div ng-include="sys_html('_footer')"></div>
<script type="text/javascript">
require(['bootstrap', 'hammer'], function($, Hammer){
		$('#carousel-container').carousel();
		var mc = new Hammer($('#carousel-container').get(0));
		mc.on("panleft", function(ev) {
			$('#carousel-container').carousel('next');
		});
		mc.on("panright", function(ev) {
			$('#carousel-container').carousel('prev');
		});
	}); 
//手机软键盘--搜索
$("body").keydown(function() {
    if (event.keyCode == "13") {
        $('#searchsub').click();
    }
});
scope.pagedata.loading = true;
scope.pagedata.type=0	
scope.tool.get_list('jy_yiliao/lesson_list/getlist/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_yiliao/lesson_list/getlist/type='+scope.pagedata.type);
}
//手机软键盘--搜索
$("body").keydown(function() {
    if (event.keyCode == "13") {
        $('#searchsub').click();
    }
});
</script>